import { TSESLint } from '@typescript-eslint/utils';

export const themeColor: TSESLint.RuleModule<string, []> = {
  meta: {
    type: 'suggestion',
    schema: [],
    docs: {
      description: '',
      recommended: 'error',
    },
    messages: {},
  },
  create(
    context: Readonly<TSESLint.RuleContext<string, []>>,
  ): TSESLint.RuleListener {
    const sourceCode = context.getSourceCode();
    const comments = sourceCode.getAllComments();

    return {
      Program() {
        return comments;
      },
    };
  },
};
